#CXX      = g++
CXX      = gcc
CXXFLAGS = -O3 -g -Wall -I../Common

CPPFLAGS = `pkg-config opencv --cflags` 
LDFLAGS  = `pkg-config opencv --libs`
LIBS     =

TARGET	= show_map 
SOURCES = show_map.c sharedmem.c

OBJS	= $(SOURCES:.c=.o)


all :		$(TARGET)

$(TARGET) :	$(OBJS)
		$(CXX) $(OBJS) $(LDFLAGS) -o $(TARGET)

show_map.o :
		$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c show_map.c
sharedmem.o :
		$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c ../Common/sharedmem.c


clean :
		rm -f *.o $(TARGET)
		rm -f *~

install:
		cp -p $(TARGET) ../../../../bin/tool/show_map

